/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package com.yuecai.modules.yc_order.service.dto;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.Instant;

/**
* @website https://el-admin.vip
* @description /
* @author DM
* @date 2020-06-26
**/
@Data
public class YcOrderDto implements Serializable {

    private Long id;

    /** 订单编号 */
    private String orderSn;

    /** 会员ID */
    private Long userId;

    /** 地址ID */
    private Long receiverId;

    /** 订单总金额 */
    private BigDecimal totalPrice;

    /** 优惠金额 */
    private BigDecimal discountsPrice;

    /** 支付金额 */
    private BigDecimal payPrice;

    /** 抹零 */
    private BigDecimal roundPrice;

    /** 支付时间 */
    private Instant payTime;

    /** 优惠券ID */
    private Long couponId;

    /** 订单状态:0:待发货;1:待收货;2:已收货;3:待评价;4:已完成;5已取消 */
    private Integer orderStatus;

    /** 备注 */
    private String remarks;

    /** 创建时间 */
    private Instant createTime;

    /** 运费（暂时不用） */
    private BigDecimal postage;

    /** 供应商 */
    private Long supplierId;

    private Long distributionId;

    private Boolean isDistribution;
}